import java.util.Scanner;
public class Homework {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Data data = new Data(x, y);
            System.out.println(data.getX() + data.getY());

        }
    }
}
class Data {

    private int x;
    private int y;

    Data(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
        }
    }

    class Test {
        public String toString() {
            System.out.print("aaa");
            return "bbb";
        }


        public static void main(String[] args) {
            Test test = new Test();
            System.out.println(test);
        }
    }
    class Main {
        public static int feibo(int n) {
            if (n == 1)
                return 0;
            else if (n == 2)
                return 1;
            else {
                int f1 = 0;
                int f2 = 1;
                int f3 = -1;
                for (int i = 2; i < n; i++) {
                    f3 = f1 + f2;
                    f1 = f2;
                    f2 = f3;
                }
                return f3;
            }
        }

        public static void main(String[] args) {
            System.out.println(feibo(6));
        }
    }
class Test1 {
    public static void hello() {//静态方法不依赖对象
        System.out.println("hello");
    }


    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Test1 test=null;//不指向任何对象，相当于类
        test.hello();
    }
}
 class Test3 {
    static int i = 0;
    public int aMethod(){
        //static int i = 0;//static只能修饰成员变量，且如果是静态成员方法，那么它里面只能有静态成员变量
        i++;
        return i;
    }
    public static void main(String args[]){
        Test3 test = new Test3();
        test.aMethod();
        int j = test.aMethod();
        System.out.println(j);
    }
}